#include "d3dx9.h"
#include "colors.h"

D3DMATERIAL9 initMaterial(D3DXCOLOR ambient, D3DXCOLOR diffuse, 
    D3DXCOLOR specular, D3DXCOLOR emissive, float power)
{
    D3DMATERIAL9 material;
    material.Ambient  = ambient;
    material.Diffuse  = diffuse;
    material.Specular = specular;
    material.Emissive = emissive;
    material.Power    = power;
    return material;
}
const D3DMATERIAL9 MATERIAL_WHITE  = initMaterial(WHITE, WHITE, WHITE, BLACK, 2.0f);
const D3DMATERIAL9 MATERIAL_RED    = initMaterial(RED, RED, RED, BLACK, 2.0f);
const D3DMATERIAL9 MATERIAL_GREEN  = initMaterial(GREEN, GREEN, GREEN, BLACK, 2.0f);
const D3DMATERIAL9 MATERIAL_BLUE   = initMaterial(BLUE, BLUE, BLUE, BLACK, 2.0f);

